package test_achieve.courierapp;

import constant.Constant;
import cucumber.api.PendingException;
import cucumber.api.java.en.Given;
import org.openqa.selenium.By;

/**
 * Created by chenkuo on 2017/7/3.
 */
public class Merchant {
    @Given("^显示代收货款提醒：(.*)$")
    public void 显示代收货款提醒货款金额() throws Throwable {
        String payNotice = Constant.driverCourier.findElement(By.id("tv_collect_money")).getText();
        System.out.println(payNotice);
    }

    @Given("^确定代收单提醒$")
    public void 确定代收单提醒() throws Throwable {
        Constant.driverCourier.findElement(By.linkText("我已知道"));
    }
}
